added comment editing functionality