app delegate class updated