query_vars hook pass instance of controller