Added another parameter to infoBox to allow choosing message type

Added another parameter to infoBox to allow choosing message type