Improve floating window, now can be closed and resized