take query selector or element when initializing