Fixing adding and deleting selects functions