make FloatWindowManager code better