fixed determination of default appearance and view id