added hook for custom notification rendering by type.