Added unmaximize functionality.