automatically add url to loop div