implement loading view with Factory and update fix some bug