Added a hide custom layers functionality
-minor improving