added admin page template, removed uneccessary joins