modificat application helper pt pending_event per masina