Refactor main views to use Utils.insertAtFn()