added variables for app key and url