reflow layout on data change