change functions in admin to author