set range in session spin box