Added functionality for viewing last query on hover