read the error from the XHR
use ionicPopup to give feedback
change style of start scan button