added "Minimize" and "Maximize" buttons for 2d model