fix bug for restriction and add admin