Comment

Added comments for handlePopups()