Added clicklistener to home adapter and corrected some code