add get function to view class