gui done. need logic