update the main layout and CSS