lots of addition to gui, bug fixed in database