Handle cancel action