Cancel button works