Modified the logic to display assign tag after scan