added photo tab and associate function