privatize _query variable to fix multiple searchs within the same page and set instance name as public