add functions in UI