more work on view popup, still not functional yet
merge