quick setup of ui. contains some dirty code