change views to use template