fix file referneces and loading icon