Open file now checks for an existing header and sets the toggle correctly