creating for loops for selects and creating selects on view