add loading state while generation in process