Added delegate method to attach to cancel button