Replacing rows by ul>li