DA-32: Created the functionality for the Cancel button