make location required only when viewing tasks