fixed bug where could only checkin/out 1 item without refreshing the page