adding templating to views and simplifying list/edit views