added modal, loading, client events.