finally got tag selection working