refresh query by parameter in frontend