move header and footer to separate view file.