code refactor, fix-bug: menu open@any place and ui can move out of monitor