add online users method