t6:added ajax script and save method