Show msgs dynamically based on type