changed filtering to work off of class name attributes instead of jQuery object