Upon pulling back the blanket, the nurse screamed.
Meaning, when the nurse pulled back the blanket, at that moment in time, she screamed.
 On pulling back the blanket, the nurse screamed.
 Upon is a preposition, and since a preposition takes a noun as its objects, never an adjective, that makes pulling a gerund.
Does that help?