fix errors and add delete comment functionality for admin UI