refactor comment and edit show post