prepared view handler, header and footer