several bugs fixed, messages ui continued