even more fixes, gui works properly now