Updated css and looping errors