refresh dialogs when a file is opened
fixed text editor close button and style