Orlando gunman visited gay chatrooms, confirm authorities