convert comment view to a directive