adding edit + extracting post code into single include