refactored some lists
mainwindow now properly refreshed after changes
added plaintext queries
added context menu: flip dimensions