fix issue where error and success messages didn't show up if another one was currently showing