added online users functionality