How can I set limits on spinner