Make cancel buttons work.