Added event on cancel button