add edit code to GUI