added selected to options and moved options to option values to array in controller