ul outside the for loop