perfect lofox method and add loading dialog