loading admin toggle by javascript