added prevent default
added prevent default
moved the onclick in the image