fixed threading and now toasts appear in UI