set listener to fragment