removed empty spans in popups