send correct var to view