Added else if statement for cancel button