adding route and view for detail