using queue to remove error message when displayed