Added fix for query urls; added gui file