add style and modify the layout