fixed bugs in gui and hand class