fix add get view function