add new query to frontend