Storing input fields options in collection

@oshulyak Well, you were saying that your code had delays, and you wanted to know how to do things better. The example I linked to do does something similar, but I don’t detect any delays.

Perhaps share sections of your code that you’re interested in so you can get some opinions and suggestions on how you might be able to improve.