added local storage and geo location for country detection