razvan: added update to inputs handler