GUI design
have improve the register function