add back button function on carousel