Fixed auto layout problems on main view controller.