removed unnecessary helpers
added event registration in input component

draft