account for null view/style when updating style

formatting; variable renaming
formatting; remove unused imports