Applied required implementation change for opening variable selection popup to another directive

Code review : Cyrus Venn Casada