refactored spinner thing in infoactivity