Set limits from input and if there is no input - use current values