Modify behaviour of connected_controller component if it has 1 only row

I canceled previous pull request because I thought there was causing an error with scanning (the scanning input barcodes didn't appeared) . After reviewing I have seen that the error was not related with my changes. 
In this new version I add the bugfix for the scanning input problem.