added partials and authentication