adds automatic redirect to app