Refactor admin views and partials