Add admin function, modify api