build basic app structure/build basic function of webchat