Updated view hook