changes to note ajaxification and jsonify