Added jsonify method
Improved deleteAction