updated stats functions with spinner

Completely implemented (I think) updateStats() to handle different time
variants for stats display. Also impleted the onItemSelected method of
the spinner to updateStats as soon as the user chooses any variant