added dialog func to pics