added admin page and functions