updated routes for new viewer and edit viewer