improved _Call.when() method

Improved when() method for floating window
Rearrange logic a bit