Removed u from previous queries, limited previous queries to 10, and fixed restoring the option for prev queries