finished implementing the carousel