added onclick to adapter