add rest call for home view