cleaned up app delegate