Investing in app and online shopping features may be the smartest thing retailers do