modify some bug and change erb element