what happens when "execute" button is clicked