made Main more user friendly