add loading bar; fix bug for project loading