Change the function Save in calendar