fix datastore overwrites and $scope var for currentAppointment