refactor ui framework with bootstrip