some refactor ui in the functions page