Modification of view when clicking on an object in Layers