relayout in case new elements are added