create and destroy detected inputs

Signed-off-by: Danilo Lizama <danilo.lizama@lemieuxbedard.com>