added code for reusing views with partials