adding cancel slot