making chat component optional in app