framework updated. split into views and apis