update close button and minimum button