Added cancel and show results button in query history