refactor find checkin from controller to model