How smart devices and apps can become our best friends