split gfx from ui
fix ui