fix some bug and begin of great interface