setting limits on click boxes