fix save code
ajax issues have croped up again.