switch to using Application impl and activity for sub