Fixed uncaught exceptions
Fixed exception if remove button is pressed while no element selected
Catches NumberFormatException