Is it possible to give a method that will trigger while creating? AND How I adding options to optgroup?