Refactoring templates in order to be compatible with pinax and bootstrap