Ashkan: Cancel button works now perfectly.