update $scope.dataPosts after post to server