creates variable so that organization id is reachable from partial and fixes case with no current session