Added logic to render different layout alternative rows