Fix usage of gloabl variables in the admin popout