added admin page and fixed errors