added functionality to the reserve button