move inputs to action hook