merged ranjith code, operator cancel button issue fixed