fix save new page function