fixed insert code button bug
minor changes only