Refactor front-end using new basetool and bootstrap