toggle action menu without a loop