Updated home page sample code