Set up fragment framework