updated the multiple selection and fixed some issues on creating more than one instance.