fix register and ui