add resize and autoHeight