added TODO for pages model
defined view function for page controller