add clinic code for register ui