Adding creatingOptions function for populating SELECT