Fix: selected message id was sometime wrong
Misc frontend fixes