Add hook for view.