This code is used to remove and add items from spinner dynamically.