added same for homewindow script-main