Delete edit comment

Completed the comment editing part and still working on delete.please provide your inputs on the current implementation so that I can make the changes accordingly in next PR.
Please don't use `==`, it does a lot of confusing type conversions so it's hard to tell what the affect is.

The construct `?true:false` doesn't do anything at all, and I don't think it helps the clarity of the code.