updated app delegate, ditched old way of checking