added state event dispatch for load error