fixed issue with main application init, added templating and components