move html to its proper place