Added setFragment method