set attribute using attribute service in an asynchronous action