update home view script