added online status to user model