1 when in edit mode canvas level query 0 when in run mode