Implementing simple spinner control