Code is added to program window for every shape that is created