Removed unused varibles

Removed unused varibles from functions layerClick and show.