Added cancel button to scanner