Fixed bug on proceeding to next page before dialog was closed