Support multiple instances on same page

Made changes to support multiple instances on the same page

#Todo: Disable method not working.