add platform android
fix undo addinstance and removeinstance