changed the routes a bit and added a jason serializer gem to make output to json easier