fix bug. the layout of header and footer views.