caching and back key

overridden backkey to kill app as it was reloading the main page.
written code to check network adapter state and load cache or load site
depending on state