add minimize and maximize