update AR mode  and fix bugs