Beginning of GUI
Correct some bug