Move admin script to separate files