Change Closing of New statement menu by clicking outside of it