usability changes

Code updates images on change, click to select code
code generates automatically