updated base template and routes