added partials method for view