fixed possible problem on show page

locations werent checked when checking if the environment tab should be disabled, fixed that now