fix bugs resulting from rename.
fix admin page loading scripts on wrong admin page.