remove player iframe in deactivating instead of deactivated

* remove iframe earlier to avoid conflicts on fast page changes
* invoke the remove method only in update and deactivating