More view and api stuff