stopped carousel from reverting to default after button click