included show/hide layer into script generation.