refresh graph according to user query now