refactoring css for new views and externalizing views/templates.