use doneButtonPressed to dismiss page