added saving the state of the layers