Add editing function to ncurses interface