made sharing data dynamic, made class selector dynamic