addition of msg dialog + bug fixes.