Changed the onChange Funktion from a string-attribute to a real function