problem solved but GUI is not complete.