Add "Cancel" buttons functionality