Setting up spinner to take in XID values