adding minimize/maximize panel