add api for adminpanel