ajax for updating habit notification preferences