created 2 methods with searching table plugin.