modal working with tags