display all pending users

added the framework for displaying all pending users in the
notifications page. fixed an issue where multiple pending users could
not be displayed at once because the pending_users function was not
returning an array.