Apply history also on page load