Fixed onInit event for home page
Fixed onInit event for home page