fixed some minor issues with dialogs