Css applied and page load method change