save notes when click next/pre button
fix some bugs