finish the ui