enhancements in messageBar implementation