adding current element & highlighting dots