moved the clearSelection method to the public scope, added a fix for the domain bug - WC