attach a fragment in runtime