fixed session class and added method to all admin pages