add cancel button and slideshow button, add functionality for cancel button