add support for selecting input by id