change a function if the application is launched from app_chooser