Fixing problem with adding a div at the bottom to fix closing tags