add minimized and maximized

add minimized and maximized