I wrote this sentence:
After selecting an element, a pop-up allows the user to create an anchor using the element's text, a text pattern, or specific attributes of the element such as id, class.
However I most see something like
After selecting ...., the user creates ....
Does my sentence above is correct too?