Added some styling to the template base and a few utility functions for the views.