Change the way to show statement generating popup menu