added load of header and footer in controller