Added api connection, modal configuration, and loading bar