adding headers and footers and problem UI fixed