added some comments. + scroll to opened item