Modifed customListAdapter to handle diary