Added state change with component
Finished the slideshow