Centers the main layout