Add delay command to give UI time to update CSS/DOM changes in sync