Make use of layer control status function in main script

Layers display status now persist between session