Add save menu and fix the bug of pointset