Reverted last commit as the bug was fixed in the commit before that.
Bug fix for the draggers not having the correct color and position after the input element have changed
Don't show the input fields if there are no objects.
Use parseInt() to parse the input.