added graphics for subpanel, and also displays the string put into function textfield