of long list of variables everywhere. Intention is to also let 3d view use this eventually, instead of duplicating code.