refactored edit checkin