if statements to show show check in check out buttons