use planviewId instead of id