adding a base app delegate