removed ajax code from controllers for getting list of visuals