Fixing formatting and closing divs