refactored notedeck to use edit directive