zoom to layer method updated