added functionality for bulk selection