adding setOnItemSelectedListener to spinner