add selected options directive implementation