Spin button function is achieved.