setup button to handle image