Redesign and bug fixing in message dialog