Inventory fixed, added button to see last query