refine the code of attachItemFragment