functioning, but still some DOM lag