updated gui, working on db and corpus loading