Rewrited to object system - users ajaxpage
Added checking if user is an admin - checkPermissions function, pageController class