change main page banner
refactory and open https function