added route and controller for detail