auto-reformatting and made scan button clickable again