cleaning up code in the routes file and decks controller