begin rewiring ui