Added condition so get api key button calls correct url.