Add events frontend logic.