update home page functionality