change first page flow logic