implemented connection between display div and markers