query command refactored and looking better
logout refactored and working again
refactored gui builder and window initializations