Add pageinit for barcodescanner