Added bootstrap and refactored templates to extend base