added state tracker in comment view