Check for cancel button