refactor ErlideUIPlugin