comments: modal dialog fix

* Actually removes modal elements on modal close, not just hides them, resulting
in duplication.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>
Merge remote-tracking branch 'adrianp-github/poo' into pu