major refactoring to implement a new, more complex bootstrap template; requires additional debugging to restore complete functionality