use correct variable to get the actual view method