implemented removeAsFragment and addAsFragment