removing view-related cruft