Dispositional optimism, goals, and engagement in health treatment programs