add index method,add admin