Refresh code editor on button click