Bug fixes

updated controller to work with new routing.