changing so that you can change the Cancel button visibility correctly.