Properly inheriting view classes