added bootstrap and refactored templates to inherit from a base