Added localStorage functionality to remember whether the box has been hidden or not.