some refactoring
delete dirty hack for input currency formating