Arranging rows on UI