connect main to new in photostory