template for adding layers