issue-163 minimize and maximize working