Refactored using model routes and added editing submissions