set hidden to remember history after buffer change