refactoring for bootstrap3 in webapp2