Redid code to get app to work from download