Added a option to hide the close button on the messages