Added loading-animation
Trigger keyup if pre-defined vaue is selected
Use last instead of Math.max()