Fixed the layout issues. Able to resize the window now