child controller not working properly, added some functionality to allow trailing slash at end of URL