Adjusting router.js for master template. Rendering rules have to be changed for this to work