Added error for non existing view
Added error for non existing view