relayout after appending if needed