Implemented editing function for the programs