edited code snippet for "in app" transition