Modified main layout to center content more effectively