fixes to edit routes and stylesheet referencing