added collapsed class to message panel at the time of initiation when more than one errors