several bugs fixed
some bugs fixed, messages ui continued