Recreate popup page and scripting