update home page code