Added search restriction popup; added preliminary code for doing search queries