modify note edit and delete links
add model tests