misc fix and implement floating window