move minimize option to plugin