chore: change edit admin functions to server side, new and changed tests