Prevent multiple action on input

Barcode scanning adjusted: slight delay before input clears, such that multiple scans in quick succession won't be registered (in case of a duplicate scan for instance).

Multiple clicks on buttons prevented through both flags and disabling the butttons.