Update index.md

added entries for onEnterForeground, onExitForeground & additional information about the indended usage of onUxActive