code refactoring for new and edit routes. Fix issue with invalid back links in forms