mongo logging and update ui