implementing gui do not work ....