abstract persistent header deletion, add support for localStorage