add LaunchApp function