Updated code for home page