update css and layout