Toggle between maximized/unmaximized states on click of maxmize button.