removed clickTag code from constructor and converted it to a public method