refactored rendering of header and footer as responsibility of each controller instead of View main class