fixed scan button when coming from background