added detail activity and click function to array adapter items to go to detail activity