updated the user presense code