refactored includes of header and footer to View main class