move end div tag inside rant loop