Added basic app structure with working tabs and offline state eventlistener