change styles and set min width/height