work on cancel button