correct loading of Admin page programmatically