added logout($e, location) to bxCtrl