fix RMB menu on ws
fix init last tab bug