Clean up view add_page function, modify the url mapping to have category slug as an argument, move link to add page to category template.