sequence diagram added to explain flow better