adding DOM syncing