redesigned scanViewController, baseviewcontroller