fixed scanning, scanning only occours on button press now