moved page fragment and intent create to PageFactory