changes for improvement the functionality of toogle as admin