Hi,
It might take long to ask this question but I will try to shorten it. You have the conjunction 'when' and when you use it as a subordinate clause, I think you can use it elliptically like this:
He should not grunt when playing tennis
Here, I think a full, expanded version of ...