moved logging and log drawing to the ui module