changed the main layout