updated the main layout.