refactored tag popup