added some functionality for user and page management on back-end