Palestinian factions pledge to work with PA