As frontline workers eye the exit, digital tools can aid staff retention