Need help in logic of ->afterStateUpdated() - Filament