edit and add template views now include button to go back to index page