generating dropdown list of fields