updated code to use carousels