add init event to main app controller