Added pages and header footer