switched loading bar to thin bar at the top. added SweetAlert.