just using minmax values on spinner and fixed some stuff