add constraints to url mappings and complete the 500 and 404 pages
link to editor