init Main app to setup the client-side