Added loading animation when changing directories