updated .get function from factory: unwraping promise first using .then statement. Update form also works.