resizing margins in main controller.

resizing margins in main controller.