edit story html
replace complilation logic