onCancel handler toggles showing of cancel button