refactor using bootstrap