use partials views and fix variable name