adding admin functionality and initial work on page rendering