Added view refresh on errors