function to switch layer (change switch circle, add to url, add to session variable)