fixed some formatting in routes and pins_controller