added auto-resizing on rows