Changed map to arraymap for views.