Created Global class, displaySmallMessage