optimize rigiste logic
change ui for rigister