including custom segue code from Werner.schnedl@gmx.ch