comment view logic