finished the first version of UI