implement listeners in the parent fragment