make warning dialog supressable and size confiurable