Sometimes on long list one might miss the buttons after clicking edit or opening an accordion to see more details and then make changes. There's a dilemma what to do on long profile settings. The page is divided into sections for each type of setting. e.g. Personal info, privacy, etc. on the section with the email notification we have a long list grouped by type. In addition to the ability to switch on/off each email, there is also a group switch for turn on/off. I've seen online most places are using the save/cancel option. Though I've also seen the automatically save when the group switch is triggered.
What should be done to avoid the user leaving without saving? Please except the options of a popup informing the user that changes has been made. It would be great to try overcome the "missing" buttons