fixed save appointment bug, added insert appointment on drag function