added name method to adapter for views