add mice and mi to the methods

Issue: graphic device in previous tabs are automatically closed.