Main Moved to AppManager Class