limit displayed messages