add didable global ui function to stop destructive clicking