Updated events with ajax