To undo layout changes:
Click View on the Menu Bar and select Undo Layout. Alternatively, you may also click the Undo Layout button on the Tool Bar.