Added controller for detail-view