added smartdiary teacher controller