refactor ui jsp