finished app with email working