Use of technology in treatment of mental disorders