more work for nested view; should be finished now