setup the main app