adding delay to css change