added 'select' action for inputs