proper changes window, min_w and min_h bounds for buttons