added error state to location view;