work on the template page