injects view operations into classes