fixed edit redirecting to create
finished refactoring routing