userList function for active users, moved it to server side too