added formatSelectOptions helper