[FIX] made signedness aware, more checks on NSNotFound where necessary. fixing crash.
[FIX] make sure window	reappears after dropping tab on old window.