Add autofocus on scan and Cancel button