GuiLogging (opening and cloing files must be rethink..)