fixed up views wrt new api