build note editing functionality
add error messaging