refactor comment modal