Use a slide show and a button click event to change the slide
Something like this
export function button1_click(event) {
$w('#slideshow1').changeSlide(1)
}
And also need some code to change the color of the code on button click
this site will help yo get started