curves, ui refactor