Saving the last position of the user in the preferences