updated margins and width/height