add admin template & fix defeact #1