State change when page load.