Correct any grammar issues in the given text:
Last night, while webbrowsing, I realized the news that Ricky Martin had come out as gay.
Last night, while web-browsing, I realized the news that Ricky Martin had come out as gay.