Added prop on for addding events in time intializetion