Revert "working of cancel button changed"

This reverts commit b2ec430ee30c5ca5264dac2235a87e67ae84855e.