put json ouput inside pre tag
fixed delete function