improved search_package and setupTable subs (tableview with checkboxes)