Add loading when open directory + fix send mail