Add action block to menuItem