fixed some code for advanced search, fixed some css stuff, fixed the
query view