add phots to index and update, better title and renaming handling