delete useless files and change register ui