Added bad hack to get the ui interface working very flawed will think about this when I have more time