dialog boxes fix