added control to sub vi