custom routes and template prevent default