Add possibility to set selected values to API