update code for home