Implemented LayoutListener
Intial layouts now pack automatically