[major] move minimize to constructor style