seperate named function for change event