update admin function and max_site setting