add mainClass to popup