updated the main layout