adding changes to index.php Events.