Only perform analyze when click on the analyze button