Cancel button added, and works