adjusted template, added page button