optimize the trigger button