Split commands and ui, added paste functionality.