Change class variable in actor controller to use the 'search' if else statement instead