Edible films and coatings as active layers