add fun to ui, complete the base ui