remove routes for form
refactoring for testing