Cancel button listener fixed