added functionality to the btnCheckOutClicked and btnCheckInClicked functions.