fixed click event

when button is clicked, the photo should show up on the specified page.