adds event init, intregates into app